package com.fw.entity;

import java.util.List;

public class Role {
    private Integer id;
    private String rolename;
    private String description;

    // 角色与权限一对多关系
    private List<Permission> permissions;
    
    public Role() {
    }
    public Role(Integer id, String rolename, String description) {
        this.id = id;
        this.rolename = rolename;
        this.description = description;
    }
    @Override
    public String toString() {
        return "Role{" +
                "id=" + id +
                ", rolename='" + rolename + '\'' +
                ", description='" + description + '\'' +
                '}';

    }
    public Integer getId() {
        return id;
    }
    public void setId(Integer id) {
        this.id = id;
    }
    public String getRolename() {
        return rolename;
    }
    public void setRolename(String rolename) {
        this.rolename = rolename;
    }
    public String getDescription() {
        return description;
    }
    public void setDescription(String description) {
        this.description = description;
    }
    public List<Permission> getPermissions() {
        return permissions;
    }
    public void setPermissions(List<Permission> permissions) {
        this.permissions = permissions;
    }

    

}
